<h3 class="titleBlock">General Information</h3>
<div class="contentBlock autoHeight">
	<?php echo fx_control::newInstance('article[entity_type_id]')
									 ->createType('hidden')
									 ->setData('value', '2')
									 ->render(); 
				?>
	<?php echo fx_control::newInstance('article[user_id]')
									 ->createType('hidden')
									 ->setData('value', '1')
									 ->render(); 
				?>
	<table class="fieldSet fullWidth">
		<tr>
			<td class="fieldLabel">Category</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article[category_id]')
									 ->createType('combobox')
									 ->addOption('--- Select Category ---', 0)
									 ->binding($model, 'category_id', $categories, 'id/name')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Thumbnail</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article_thumb')
									 ->createType('file')
									 ->binding($model, 'thumb_image')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Main Image</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article_image')
									 ->createType('file')
									 ->binding($model, 'main_image')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Title</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article[title]')
									 ->createType('text')
									 ->binding($model, 'title')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Identifier</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article[identifier]')
									 ->createType('text')
									 ->binding($model, 'identifier')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Description</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article[description]')
									 ->createType('editor')
									 ->binding($model, 'description')
									 ->setData('id', 'article_description')
									 ->render(); 
				?>
			</td>
		</tr>
		<tr>
			<td class="fieldLabel">Content</td>
			<td class="fieldInput">
				<?php echo fx_control::newInstance('article[content]')
									 ->createType('editor')
									 ->binding($model, 'content')
									 ->setData('id', 'article_content')
									 ->render(); 
				?>
			</td>
		</tr>
	</table>
</div>
<script language="javascript" type="text/javascript">
	jQuery("#article_description").editor("<?php echo CKFINDER_BASE_DIR?>");
	jQuery("#article_content").editor("<?php echo CKFINDER_BASE_DIR?>");
</script>